package com.bay1ts.service;

import com.bay1ts.domain.Users;
import org.springframework.security.core.userdetails.UserDetails;

public interface UserService {
	public void insert(Users user);
	/**
	 * @param email
	 * @author bay1ts
	 * @email bay1ts@gmail.com
	 * 这个方法只是把重置密码链接中的token部分保存到数据库中做检查用，并没有重置密码
	 */
	public void forgetPassword(String email);
	public int confirm(String code);
	public String getUsernameByEmail(String email);
	public void reset(String password, String email, UserDetails user);
	//动态登录
	public void dynamicLogin(String phonenumber);
	public int confirmDynamicCode(int code,String phonenumber);
	public void test(String u,String p);
}
